package com.grq.framework.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 请求返回枚举
 */

@AllArgsConstructor
@Getter
public enum ResultEnum {

    // 请求成功
    SUCCESS(200, "SUCCESS"),
    // 未登录
    NOT_LOGIN(401, "UNAUTHORIZED"),
    // 无权限
    NOT_PERMISSION(403, "FORBIDDEN"),
    // 无资源
    NOT_FOUND(404, "NOT FOUND"),
    // 前提条件失败
    PRECONDITION_FAILED(412, "PRECONDITION FAILED"),
    // 出错
    ERROR(500, "ERROR");


    private final Integer code;
    private final String msg;
}
